package com.cloud.consumer.provider;

import com.cloud.common.annotation.FeignInvoke;
import com.cloud.common.bean.ResponseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cloud-provider")
public interface CloudProvider {

	@FeignInvoke(isRpc = true)
	@GetMapping("/user/{id}")
	ResponseInfo get(@PathVariable("id") String id);
	
}
